<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-header">
        <div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
        <div class="title">我的团队</div>
    </div>
    <div class="fui-content navbar">
        
        <div class="fui-tab fui-tab-warning" id="tab">
			<a ng-class="{'active':!pagedata.params.status}" ng-click="access_json(pagedata.op,'type='+pagedata.params.type)" >全部</a>
			<a ng-class="{'active':pagedata.params.status==0}" ng-click="pagedata.params.status=0;access_json(pagedata.op,made_query(pagedata.params))" >待审核</a>
			<a ng-class="{'active':pagedata.params.status==1}" ng-click="pagedata.params.status=1;access_json(pagedata.op,made_query(pagedata.params))" >已通过</a>
			<a ng-class="{'active':pagedata.params.status==2}" ng-click="pagedata.params.status=2;access_json(pagedata.op,made_query(pagedata.params))" >已拒绝</a>
        </div>
		<div class="fui-tab fui-tab-warning" id="tab">
			<a ng-class="{'active':pagedata.params.type==0}" ng-click="pagedata.params.type=0;access_json(pagedata.op,made_query(pagedata.params))" >区域代理</a>
			<a ng-class="{'active':pagedata.params.type==1}" ng-click="pagedata.params.type=1;access_json(pagedata.op,made_query(pagedata.params))" >普通代理</a>
        </div>
        <div class="fui-list-group" id="container">
			<div ng-repeat="item in pagedata.list">
			<div  class="fui-list" style="height: 3.5rem">
				<div class="fui-list-media">
					<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">
					<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
				</div>
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 
						  {{item.member.nickname || '未获取'}}
						  </div>
					</div>
					<div class="subtitle">
						{{item.member.mobile}}
					</div>
				</div>
				<div class="row-remark">
					<p ng-if="item.type>0">{{item.agent_area}}</p>
					<p ng-if="item.type>0">{{date(item.createtime)}}</p>
				</div>
				
			</div>
			<div class="fui-list "  ng-if="item.status==0">
				<div  style="float:right;">
				<div class="fui-list-group-title lineblock opblock " >
					<span class="status noremark">
						<a class="btn btn-sm btn-danger-o" ng-click="post({'id':item.id,'status':1},'check')">同意申请</a>
					</span>
					<span class="status noremark">
						<a class="btn btn-sm btn-danger-o" ng-click="post({'id':item.id,'status':2},'check')">拒绝申请</a>
					</span>
				</div>
				</div>
			</div>
			</div>
		</div>
        <div class='infinite-loading' style="display:none;"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-show="pagedata.list.length==0" class='content-empty'>
			<!--<i class='icon icon-group'></i><br/>暂时没有任何数据-->
			<img src="{SITEROOT}addons/ewei_shopv2/static/images/nomeb.png" style="width: 6rem;margin-bottom: .5rem;"><br/><p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>

</div>